Parameters
- buffer
- offset
- count
Return Value
The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
Exception | Description |
---|---|
System.ArgumentException | The sum of offset and count is larger than the buffer length. |
System.ArgumentNullException | buffer is a null reference (Nothing in Visual Basic). |
System.ArgumentOutOfRangeException | offset or count is negative. |
System.IO.IOException | An I/O error occurs. |
System.NotSupportedException | The stream does not support reading. |
System.ObjectDisposedException | Methods were called after the stream was closed. |